<form id="register" action="{:U('product/add')}" method="post">
	<input type="hidden" name="creator_role_id" value="{$Think.session.role_id}"/>
	<input type="hidden" name="r" value="{$r}"/>
	<input type="hidden" name="module" value="{$module}"/>
	<input type="hidden" name="id" value="{$id}"/>
	<input type="hidden" name="dialog_add" value="dialog_add"/>
		<table type="hidden" class="table table-hover">
		<tfoot>
			<tr>
				<th>&nbsp;</th>
				<th colspan="3"><input class="btn btn-primary" type="submit" value="{:L('SAVE')}"/> &nbsp;<input class="btn" onclick="javascript:$('#dialog-product').dialog('close');" type="button" value="{:L('CANCLE')}"/></th>
			</tr>
		</tfoot>
		<tbody>
			<tr>
				<td valign="middle">{:L('PRODUCT_NAME')}</td>
				<td valign="middle"><input name="name" id="name" type="text" /></td>
				<td valign="middle">{:L('PRODUCT_CATEGORY')}</td>
				<td valign="middle">
					<select name="category_id">
						<volist  name="category_list" id="vo">
						<option value="{$vo.category_id}">{$vo.name}</option>
						</volist>
					</select>
				</td>
			</tr>
			<tr>
				<td valign="middle">{:L('RESEARCH_AND_DEVELOPMENT_TIME')}</td>
				<td valign="middle"><input name="development_time" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})" id="development_time" class="user_input" type="text" /></td>
				<td valign="middle">{:L('TIME_TO_MARKET')}</td>
				<td valign="middle"><input name="listing_time" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})" id="listing_time" class="user_input" type="text" /></td>
			</tr>
			<tr>
				<td valign="middle">{:L('THE_COST_PRICE')}</td>
				<td valign="middle"><input name="cost_price" id="cost_price" class="user_input" type="text" /></td>
				<td valign="middle">{:L('SELLING_PRICE')}</td>
				<td valign="middle"><input name="sales_price" id="sales_price" class="user_input" type="text" /></td>
			</tr>
			<tr>
				
				<td valign="middle">{:L('INVENTORY')}</td>
				<td valign="middle"><input name="stock_count" id="stock_count" type="text" /></td>
				<td valign="middle">{:L('OPEN_TO_BOOKING')}</td>
				<td valign="middle"><input name="pre_sale_count" id="pre_sale_count" type="text" /></td>
			</tr>
			<tr>
				<td valign="middle">{:L('RESEARCH_AND_DEVELOPMENT_GROUP')}</td>
				<td valign="middle"><input name="development_team" id="development_team" class="user_input" type="text" /></td>
				<td valign="middle">{:L('DETAILS_ABOUT_THE_LINK')}</td>
				<td valign="middle"><input name="link" id="link" type="text" /></td>
			</tr>
			<tr>
				<td valign="middle">{:L('THE_PRODUCT_DESCRIPTION')}</td>
				<td colspan="3" valign="middle"><textarea name="description"></textarea></td>
			</tr>
		</tbody>
	</table>
</form>